{include file="public/header" /}
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <!-- Panel Other -->
    <div class="ibox float-e-margins">
        <div class="ibox-title">
            <h5>用户获取物品奖励日志</h5>
        </div>
        <div class="ibox-content">
             <!--搜索框开始-->
            <div class="row">
                <div class="col-sm-13">
                    <form name="points_index" class="form-search" method="get" action="{:url('index')}">
                        <div class="col-sm-4" id="data_5">
                            <div class="input-daterange input-group" id="datepicker">
                                <input type="text" class="input-mini form-control" placeholder="开始时间" name="start" id="start" value="{$Request.param.start}"/>
                                <span class="input-group-addon">~</span>
                                <input type="text" class="input-mini form-control" placeholder="结束时间" name="end" id="end" value="{$Request.param.end}" />
                            </div>
                        </div>
                        <div class="col-sm-2">
                            <div class="col-sm-12 input-group">
                                <input type="text" class="input-mini form-control" placeholder="用户名" name="display_name" value="{$Request.param.display_name}"/>
                            </div>
                        </div>					
                        <div class="col-sm-3">
                            <div class="input-group">
                                <span class="input-group-btn">
                                    <button type="submit" class="btn btn-primary"><i class="fa fa-search"></i> 搜索</button>
                                </span>
                            </div>
                        </div>

                    </form>
                </div>
            </div>
            <!--搜索框结束-->
            <div class="hr-line-dashed"></div>

            <div class="example-wrap">
                <div class="example">
                    <table class="table table-bordered table-hover">
                        <thead>
                            <tr class="long-tr">
                                <th>ID</th>
                                <th width="10%">用户名</th>
                                <th width="10%">管理员名称</th>
                                <th>操作描述</th>
                                <th width="15%">操作阶段</th>
                                <th width="10%">对象类型</th>
                                <th width="15%">创建时间</th>
                            </tr>
                        </thead>
                        <tbody id="article_list">
                            {foreach name="lists" item="vo"}
                                <tr class="long-td">
                                    <td>{$vo.id}</td>
                                    <td>{$vo.user_name}</td>
                                    <td>{$vo.admin_name}</td>          
                                    <td>{$vo.remark}</td>    
                                    <td>{$vo.stage}</td>
                                    <td>
                                        {if condition="$vo['target_type'] == 1"}
                                            宝箱
                                        {elseif condition="$vo['target_type']==2"/}    
                                            道具
                                        {else/}
                                        
                                        {/if}   
                                    </td>
                                    <td>{$vo.create_time|date="Y-m-d H:i:s",###}</td>
                                </tr>
                            {/foreach}
                        </tbody>
                    </table>
                </div>
                <!-- 分页 -->
                <div id="Pages">  {$page} </div>
            </div>
        </div>
    </div>
</div>
<!-- End Panel Other -->
</div>
{include file="public/footer" /}
<script type="text/javascript">
    $('#data_5 .input-daterange').datepicker({
        keyboardNavigation: false,
        forceParse: false,
        autoclose: true
    });
</script>
</body>
</html>